//
//  UIView+Extension.h
//  01-黑酷
//
//  Created by apple on 14-6-27.
//  Copyright (c) 2014年 heima. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Extension)
@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGSize size;
//头尾描边
+ (UIView *)strokeView:(UIView*)view header:(BOOL)header footer:(BOOL)footer;
//按比例增加描边
+ (UIView *)strokeView:(UIView *)view ratio:(NSInteger)ratio;
+ (CGSize)sizeWithString:(NSString *)string font:(UIFont *)font width:(NSInteger)width;
+ (CGSize)sizeWithString:(NSString *)string font:(UIFont *)font width:(NSInteger)width height:(NSInteger)height;
+ (void)showAlter:(NSString *)message;
@end
